#include <string>

// create the pers and debts namespaces
namespace pers
{
	struct person
	{
		std::string fname;
		std::string lname;
	};

	void getperson(person &);
	void showperson(const person &);
}

namespace debts
{
	using namespace pers;

	struct debt
	{
		person name;
		double amount;
	};

	void getdebt(debt &);
	void showdebt(const debt &);
	double sumdebts(const debt ar[], int n);
}

